import java.util.Scanner;

public class login {
    public static void main(String[] args) {
        System.out.println("请输入你的密码：");
        Scanner scan = new Scanner(System.in);
        int count = 3;
        while(count != 0){
            String passwords = scan.nextLine();
            if(passwords == "li1104siyu") {
                System.out.println("登录成功!");
                break;
            }
                else {
                    count--;
                    System.out.println("密码错误，你还有"+count+"次机会！");
                }
            }
        }
    }

